completes toy problem that takes in a string and checks if it`s an acceptable string