Check by char to avoid atoi error