I don't see why copying the string would be necessary, and 50 characters might not be enough.