Getting reddit api calls to work with user input