Comments are not properly identified
Comments are not properly identified if a white spaces (or other chars) are put in front of them.
E.g.
testtest #comment
wouldn't be recognised.
The input string must be split before the ensure
before it is further processed to ensure proper handling of comments.