Trim string functions.