Removing the need for regex or commons-lang

@dwightguth, does this address your concerns about the previous pull request?

@dwightguth, @seriousamlqz Please review