Simplify useless string operations.