Keeping urls single line and removing whitespaces