[minor] trim spaces in console input