cleaning up the string input for mysql