separated trimming of phonetic and compound markup