Fix improper parsing of location string