change max string length, add warning message for truncation