replaced msg with info, fixed pasing argument to replace_unwanted_character function