prevent input of empty string