Because it's using the string from the buffer... including the 'display text property. Perhaps it should strip all text properties before being used? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no