Create Regex From String Python Replace Char In String In Java