[String] Implement atoi function.