If you would like to remove everything after and including "By", string manipulation functions in PHP will do the trick.
$variable = substr($variable, 0, strpos($variable, "By"));