added ingnoreNewLines() function