if location name is too large then reduce the length