JavaScript 602600
usage with nodeJS: node code.js "7H 3S 7S 7D AC QH 7C"
function a(o){s="";for(k in o)s+=o[k];return s;s} b=process.argv[2];argv[2] c={S:0,H:0,D:0,C:0} v={A:0,K:0,Q:0,J:0,T:0,"9":0,"8":0,"7":0,"6":0,"5":0,"4":0,"3":0,"2":0} d=b.split(" ") for(i=d.length;i--;){e=d[i];c[e[1]]++;v[e[0]]++} c=a(c);v=a(v) f=g=h=j=k=l=m=false if((st=c.indexOf(5))!=-1)g=!g if(v.match(/[1-9]{5}/))h=!h if(st==0)f=!f if(v.indexOf(4)!=-1)j=!j if(v.indexOf(3)!=-1)k=!k if(n=v.match(/2/g))if(n)if(n.length>=2)m=!m;else l=!l p=" of a kind" q="Flush" r="Straight" console.log(f&&g?"Royal "+q:h&&g?r+" "+q:j?"Four"+p:k&&(l||m)?"Full House":g?q:h?r:k?"Three"+p:m?"Two pairs":l?"Pair":"High card")