NSString category to help the validate formate string.