Fix spelling errors in formatter.py

Found a few spelling errors in formatter.py