ADDED terminator token to be modified as newline , also multiline newline cleanup