A simple implementation on calling methods in a class from a string input.