Whitespace removal & input improvements

Have removed trailing whitespace and have also changed the input from 'text' to 'number' and allowed for floats to be added without browser validation to trigger as the inputs will be valid.