Function changeStringTrim

Changes string values by calling trim and then calls the specified checker on the transformed string