In written English (mainly online) I often come across sentences ending with a question or an exclamation mark with a space before it. Is it always just an error or a typo? Or there are cases when it is a correct English, for example after closing parentheses or some other punctuation marks?