trim method
Implementation
String trim(String contents, String fileExtension) {
fileExtension = fileExtension.toLowerCase();
for (var handler in _handlers) {
if (handler.types.contains(fileExtension)) {
return handler.trim(contents);
}
}
return contents;
}