slang: apply trimming to input