Fix the ToInt to handle the string with period