Simplify a string.