Prefix suffix lexing and unit tests