update solution for String to Integer