Fix code style in String class