Photon interview question

Coding question: remove "*" from the string