Correct string handling for input in strToInt64 function