         let unprefixed: String
         if try containsAnyLowercasedChar(string) {
             let comps = string.components(separatedBy: "_")
-            unprefixed = comps.map { titlecase($0) }.joined(separator: "")
+            unprefixed = comps.map { upperFirstLetter($0) }.joined(separator: "")
         } else {
             let comps = try snakecase(string).components(separatedBy: "_")
             unprefixed = comps.map { $0.capitalized }.joined(separator: "")

        return transformed
    }

    /// Lowers the first letter of the string
    /// e.g. "People picker" gives "people picker", "Sports Stats" gives "sports Stats"
    ///
    /// - Parameters:
    ///   - value: the value to uppercase first letter of

        return lowercaseCharRegex.firstMatch(in: string, options: .reportCompletion, range: fullRange) != nil
    }

    /// Uppers the first letter of the string
    /// e.g. "people picker" gives "People picker", "sports Stats" gives "Sports Stats"
    ///
    /// - Parameters:
    ///   - value: the value to uppercase first letter of
    ///   - arguments: the arguments to the function; expecting zero
    /// - Returns: the string with first letter being uppercased
    /// - Throws: FilterError.invalidInputType if the value parameter isn't a string
    private static func upperFirstLetter(_ value: String) -> String {
        guard let first = value.unicodeScalars.first else { return value }
        return String(first).uppercased() + String(value.unicodeScalars.dropFirst())
    }

    /// This returns the snake cased variant of the string.
