String removeSpaces() { String result = this; return result.replaceAll(RegExp(r'\s+'), ' ').trim(); }