added input support for integers (positive) and strings