Corrected and added string truncation for location name and cat name.