REPLACE() performs a case-sensitive match when searching for from_str.
mysql> mysql> mysql> SELECT REPLACE('www.java2s.com', 'w', 'W'); +-------------------------------------+ | REPLACE('www.java2s.com', 'w', 'W') | +-------------------------------------+ | WWW.java2s.com | +-------------------------------------+ 1 row in set (0.00 sec) mysql>