simple implementation of mlstring_CASE