Replace multiple string effectively.