Added toEnum method

Returns a enum Character given a name input