removing additional new line on url check