improvements to StringFormat::getWords