Now the trailing spaces are gone. :) I assume they were needed to separate the user input from the prompt.

BTW, adding them in the code instead of in the the message text is a good idea as it helps avoid having them get dropped by the translation team.