Added helper function to clean whitespaces and newlines in text f80cf2d verified gperdrizet commited on Jul 23