Handle the representative strings with "K" and "M" cases.