The result of replaceAll needs to be stored somewhere as String is immutable.