It returns a string if it finds it, and false if it's not there. So, combining your code together:
PHP Code:
if (stristr($newpost['title'], 'blah'))
{
$newpost['title'] = 'new blah';
}
You should use stripos instead though - it is faster. It returns the position of the occurance on true, and false on failure.
PHP Code:
if (stripos($newpost['title'], 'blah') !== false)
{
$newpost['title'] = 'new blah';
}