Remove all line feed, carriage return and whitespace characters
String cleanUrl(String url) { return url.replaceAll(RegExp(r'[\n\r\s]+'), ''); }