#t180. 字符替换

字符替换

Character Replacement

Problem Description

Replace all occurrences of a specific character in a string with a given character, producing a new string.

Input Format

A single line, consisting of a string and two characters separated by single spaces. The string is the string to be processed; its length is at most 30 characters and it contains no spaces or other whitespace; the next character is the specific character to be replaced; the following character is the given replacement character.

Output Format

One line, the replaced string.

Sample Input

hello-how-are-you o O

Sample Output

hellO-hOw-are-yOu