stat_accum_input: change method of testing empty strings

After second thought this way seems clearer, and 4 characters shorter