This should probably be: string.isEmptyOrNull to handle the null situation we discussed.