implemented white space removal