The things you describe are forms of echolalia. I repeat words and phrases to myself and others all the time. When I do it for myself, it's most often a line from a movie that I find comforting or funny, and I'll repeat it over and over dozens of times in rapid succession. When I do it to others (only when I'm in meltdown or shutdown and lose access to my words), I choose lines from movies that convey what I mean. For example, I was feeling frustrated with myself after my last meltdown, and the only way I could communicate that was with the line, "Sometimes Charlie Brown, your dog drives me crazy!"
_________________
"Survival is insufficient" - Seven of Nine
Diagnosed with ASD level 1 on the 10th of April, 2014
Rediagnosed with ASD level 2 on the 4th of May, 2019
Thanks to Olympiadis for my fantastic avatar!