Make complete function work with case-insensitivity.