How to deal with 4 year old with potty mouth

I am struggling here. My daughter is about to go into preschool and I am not feeling good about it. She goes to a day home(which is hard to find) and learning all these bad behaviours from the other kids “your a poo face” “I going to poo on your head” “I hate you”. Those are some examples. I have tried multiple ways of trying to curb this behaviour but when she doesn’t get her way she responds with this (me, dad, her friends). Any tips? I am terrified she’s going to do it to ppl at her pre school!