If $addtok is passed nothing (i.e. $null) as the token to add to the string, then $addtok returns $null. I should expect that it would return the same string that was passted to it (i.e. nothing to add, so nothing added).