https://datastax-oss.atlassian.net/browse/JAVA-67
borrow the replace method from Apache commons-lang (and remove the "max" argument)