#37 fix (Java 1.5 compatible)

Master branch still has JDK 1.6 code, like isEmpty() of string

Now tested the core with 1.5. Is working now.