converted building esricoordinates to function

esricoordinates are now built to a string within a separate function