Remove space before a question mark in a string