the program only accepts strings and lists as input now, to simplify both the code and usage of it