When using the trim function how do I ensure that I don't grab spaces instead of the 3 or 7 characters I want? Thanks very much!