You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: PredictMaskedTokensUsingFinBERT.m
    path of file: ./repos/transformer-models
    
    the code of the file until where you have to start completion: %% Predict Masked Tokens Using FinBERT
% This example shows how to p
    
function returns the original string with the mask tokens replaced.
sentencePred = predictMaskedToken(mdl,strMasked)

%% Calculate Prediction Scores
% To get the prediction scores for each word in the model vocabulary, you
% can evaluate the language model directly using the |bert.languageModel|
% function.

%%
% First, tokenize the input sentence with the FinBERT model tokenizer using
% the |tokenize| function. Note that the tokenizer may split single words
% and also prepend