added convert from string to integer