Fixed and updated switch cases in Format.java.