Remove Javascript String Functions Replace Lost