Document new contains* methods.

Use faster RegEx.test() to replace String.match().

Minor lint fixes.