Replace String with new pattern