Minor change in string empty check