add common substrings spec for Ruby