Removed redundant function "is_digit" which was also violating namespace