Replace '' with str() for clarity. Removed unnecessary index finder in handle_location