Added handling invalid instruction strings and lowercase instruction strings.