used NOT operator for checking empty strings