public static String fixName(String user)
  {//System.out.println("fixName");
    String username = user;

    for (int i = 0; i < username.length(); i++)
    {//System.out.println("fixName username: " + username + "; username.charAt(" + i + "): " + username.charAt(i));
      if (username.charAt(i) == ' ' || username.charAt(i) == '\t' || username.charAt(i) == '\n' || username.charAt(i) == '\r' || username.charAt(i) == '\b')
        username = username.substring(0, i) + "_" + username.substring(i + 1, username.length());
    }
    return username;
  }