Fix for issue #30

Enhancing the check for prefix options to allow for empty prefixes.