Trim location string when parsing