Remove unnecessary toString() invocations