A Scalar function working properly on all SQL versions except on compatibility level SQL 2019 (cl 15), it returns only the first 9 characters of the result string. If I chan