Corrected errors in matching regexp.test() to null instead of false
Corrected regex for format tests