Replace gender code with string in window