check to see if string is empty return nil