Trimming function is a method.