Added input validation methods in FormatHelper