Javacast fix for OpenBD/new versions of java (dunno which it is)

Matcher(string) is being used rather than Matcher(int) (at the very
least on OpenBD)