Killing multiple processes through word matching

I needed to kill something running in ubuntu. saw many processes. the key programs used is ps, grep, and kill.

kill -9 `ps -ef|grep -v "grep"|grep "somesearchstring"|awk ' { print $2 } '`