fix bug with spacing in input text