Changed 'choice' and 'string' to use reduceRight instead of reduce. Removed non amd def.