added trimming function