Added case-insensitivity and fixed a bug