DFAO with characters

Thank you for the detailed answer. This gives me a really good starting point.