the inputstring can now be set to any type
changed the names of my inputs to be more representative