Fix trim string helper