How can I check if any character from a string is equal to the character found in another string ? and if they are equal replace them from underscore to that character on java