Add trim () function to string.