Skip to main content
1 of 4
ErikF
  • 4.8k
  • 9
  • 11

C (gcc) with -m32, 90 bytes

m,c,v;f(char*s){for(m=v=s;m&&(c=*s++);)index("aeiou",c)&&printf("shm",m=0);puts(m?v:--s);} 

Try it online!

ErikF
  • 4.8k
  • 9
  • 11