Trim method

Use this method to remove unwanted spaces, dashes, and other unwanted characters from the beginning and end of the filename. Sometimes when using many methods you end up with too many spaces in either end of the filename. To avoid this, use this method.