Added trimming of whitespace for a lot of inputs