Update Format.java

*Commented out my check of ~, but should be the same.