As Lazarus works with UTF8, and the string functions like "pos" and "delete" count bytes rather than (visible) characters, you can't use the visible character position for these functions. -Michael