Solution to String to Integer