finish string to integer