Merged strrchr assigment into conditional expression.