adding support for empty strings in NFA's