The Frobenius Problem in a Free Monoid