checking for empty word