need function to clean url