Ok I thought there existed some standard function.
Anyway I made it. I used strxc to replace the dots.
Thanks!!