Minor change to the string to long algorithm