Made it so that the format method strips out all non-alphabetic characters. Also, there is now a function that can re-inject the non-alphabetic characters so that any formatting is kept in place (spaces, newlines, etc.).
Added input file input4.txt. This is just a copy of input1.txt with a few non-alphabetic characters sprinkled in.