calling callback function when the mask is completed (mask with '?' character)

When the mask contains a '?' character, the callback function (completed) is calling when all characters were typed, even if part of mask is optional.

Example: "99?99" => callback function must be called when the first two numbers are typed.