can I replace the words "that their function" with "whose function"?
For example:
"Ants have antennas which their function is to get signals from the environment."
Then I would like to replace these two words with one:
"Ants have antennas whose function is to get signals from the environment."