have to check for null string when using negative look-behind assertion