Removed string switch in bmtools for Java 6 compatibility