Removing the endlocationstring