added utility functions to FormatUtils and HttpUtils