Added case insensitive string comparison
Add  feature and fixed some offset and null bugs