In this case you would want to use multinomials, trinomials to be specific, i.e.
$$10! \over {2! 3! 5!} $$
How does one arrive at this formula? Always keep in mind when doing combinatorics the fundamental counting principle:
If there are $a$ ways for one event to occur, and $b$ ways for a second event to occur, then there are $ab$ ways for both to occur.
In this case, we have $3^{10}$ ways to find a ternary string with 10 characters. If we want exactly two of them to be ones, then we have $2^8$ ways to choose the remaining digits, and $10!$ ways to sort those 10 digits around.
However, we also want to have exactly three two's, hence we actually only have 1 way of choosing the remaining digits (2200000), and now the question becomes:
Given a total collection of 10 objects, how many distinguishable ways can we sort them around provided that we have one group of 2 objects, one group of 3 objects, and one group of five objects?
We get 10! ways when all 10 objects are distinguishable from each other: 10 choices for the first position, 9 choices for the second, ..., 1 choice for the last position.
However, we are assuming that 2 of the objects are indistinguishable from each other. There are 2! ways to permute these two objects, so that given any permutation of the 10 objects, it is a member of a set of 2! permutations which are indistinguishable, because these two objects are indistinguishable.
Hence, we have $10! \over 2!$ permutations which are distinguishable when we mark two of the objects as indistinguishable.
Given these permutations, if we mark another three objects as indistinguishable (the 2's in this case), we get by the same logic as above:
$$10! \over {2!3!}$$
distinguishable permutations. However, we have to keep in mind that the remaining five objects are also being implicitly grouped together (because any two 0's are identical), hence we have to apply the same logic once more to get:
$$10! \over {2!3!5!}$$
That explanation actually wasn't as clear as it was in my head, so please let me know if you have additional questions.
See also:
Multinomials
Permutations
Combinations
EDIT: additional references
Wikipedia - Multinomial Coefficients
Wolfram Alpha - Multinomial Coefficients
One Page Fact Sheet about Binomial and Multinomial Coefficients
Combinatorics from the Ground up: From Permutations to Multinomial Coefficients and Beyond
Simple and Intuitive Examples of Multinomial Coefficients