Strict standards fix cat functions

Minor fix to resolve a strict standards warning caused by trying to assign by reference the return value of a function. Also fixes up whitespace in the same func (Separate commits for clarity)