Removed Apache commons dependency and replaced with String.replaceAll(). It is considered to be slower, but a big dependency can be removed.