util: contains, str, fallback replace to re