added case-insensitive and partial word completion