trim spaces in input fields and add http