trimming form inputs