jimchen5209 says to OwO
s/(.)\1\1/$1/g