clean input strings