feature #3153, add isValidHour method inside StringUtil