Substitute all occurrences in the string