cleanString method
Implementation
String cleanString(String string) {
string = string.replaceAll('\n', '');
string = string.replaceAll('\t', '');
string = string.replaceAll('\r', '');
string = string.replaceAll(' ', ' ');
string = string.replaceAll(' * ,', ',');
string = string.replaceAll(' *,', ',');
string = string.replaceAll(' *', '');
string = string.replaceAll('*', '');
string = string.replaceAll(' :', '');
string = string.replaceAll(':', '');
string = string.replaceAll(' ,', ',');
string = string.trim();
return string;
}