Modified the trim() command to allow for multiple inputs