Program for String combinations