Refactored coordinate string generation slightly