Added logical limits to string length