Cleanup: coherent string comparisons

Change-Id: I41d221e75dc27a1a32d926226eb4b1640b0b0bd0
diff --git a/src/main/java/de/ids_mannheim/korap/KrillIndex.java b/src/main/java/de/ids_mannheim/korap/KrillIndex.java
index a365045..48cf842 100644
--- a/src/main/java/de/ids_mannheim/korap/KrillIndex.java
+++ b/src/main/java/de/ids_mannheim/korap/KrillIndex.java
@@ -1245,18 +1245,19 @@
 							t.getStartChar(), t.getStartPos(),
 							t.getEndChar(), t.getEndPos());
 
+
 					// Ignore empty types for the moment
-                    if (t.getType() == "term" || t.getType() == "span") {
+                    if (t.getType().equals("term") || t.getType().equals("span")) {
                         match.addAnnotation(t.getStartPos(), t.getEndPos(),
                                 t.getAnnotation());
 					}
 
 					// TODO:
-					// else if (t.getType() == "empty") {
+					// else if (t.getType().equals("empty")) {
 					// }
 
 					// Use relSrc for annotation views
-					else if (t.getType() == "relSrc") {
+					else if (t.getType().equals("relSrc")) {
 						// This only respects relSrc!
 						// May require more information for bidirectional relations
                         match.addRelation(