added condition if string is empty