checks for valid variable names in spread