Make CheckUserLog trim trailing spaces

Adds a line which trims any whitespaces off of input given as a search
parameter to CheckUserLog. Bug which has repeatedly been noted by me in
my usage of the tool. Basic use of trim(), to be parallel to
SpecialCheckUser.php.

Change-Id: I2928ae7c78e1b7f21811ed03e417de0430ac1747