Use HashMap replace to replace Value of key.