You could do it like this with
sed if there is always a parenthesis to identify the component to be removed:
Code:
who | sed -r -n -e '/f123a12/{s/ *\(.*$//;p;}'
Though I am sure there is a more elegant pattern to use.
You could do it with awk, too, but that would change the spacing a little.