replace STREQ macro with a function
replace STR_STARTS_WITH macro with a function