added jg_rm_comments function to strip comments - called by all exported functions prior to processing - and jg_rm_comments calls check_string to collapse if necessary