revert semantics of commonprefix to work character-by-character
3 files changed