implement "contains" function for strings