(InputText as any)  =>
if Value.Type(InputText) = type text then
let
    Y_Correction = Text.Replace(InputText,"ي","ی"),
    K_Correction = Text.Replace(Y_Correction,"ك","ک")
in
    K_Correction
else
InputText