Fix case sensivity bug in hasPrefix.