format route strings