Abstracted out char matrix processing