Add CompareStringOrRegex to string lib
Merge pull request #626 from maciejmrowiec/master

add CompareStringOrRegex