Creating a filter for formatting urls