Updated language inputs to default to the enum, wrote a function to get the enum from a string representing the enum