Remove spaces in input tag.
Simplify code