Given a string s and two strings x and y, change all occurrences of x to y. If x is empty, return s;