account for out-of-alphabet inputs