corrected NPE in boundedLength calculations for sequences

GitHub issue #26 - Exception: java.util.regex.PatternSyntaxException: Look-behind group does not have an obvious maximum length