move removeNewlinesAndCut into class + make it actually cut