remove extra whitespace from the prompt