Edited GPS character loop