Add unit tests, comments, extend String to include matchesRegex method.