Changed the isWayPointonRoute method for comparing strings