how do i generate random strings using letters in a given string