Get Substring From Char Array To Int