updating to parse based on whitespace and newline correctly