improve resolving attr "extends" of element "toJava"

Currently, attr extends requires the format <toJava, extends="Foo,Bar"/> strictly, it is better if blank space is allowed.