You should not remove this line because this checks if the string is a number by callig lexical_cast().