Updated string-len to operate similarly to raw-replace