assumes user will enter input as a string