Fixing a bad replaceAll