string run length encoding