added warning if string exceeds 255 characters;

simplified constructing preview text.