Changed to regex and pattern mattern matching for remark detection