Removing anything past slash on map