Properly strip input