fix: removed replace() method as it is only jdk1.8 compatible