Remove duplicate words where appropriate.
Inspired by: PRs 28356, 28359; tyler spivey <tspivey8@home.com>