stop sscanf from returning empty array values