Remove the comment and then check that for delimiter match

This should partially fix #152 as it removes the comment from the currently parsed line and then checked this striped line for matching delimiters. Previously, the check was done on the unmodified string which also checked in the comments.