reduce string length to force text instead textarea