better warnings, changed match to search in str_extract