Converts string to long - Testing logic is not working