Move dictionary lookup string to rateMedia function