Debugged spelling routine.