Allow for string input of representation