changing location to string