Prompting User to Remove Spaces

I've made the program prompt the user to remove spaces themselves when they are found. I don't know anything about UX design so I don't know if this is a reasonable solution or not.

This solution seems sub-optimal to just removing the spaces automatically, but I've been having trouble getting that to work properly. I keep getting the account not found error. 

I have the (error throwing) prototype solution at https://github.com/rosswendt/D3QuestsPrototypeSpaces/blob/master/D3QuestsPrototypeSpaces.java