If you use "s" with $read, it will find the first line that starts with that word/phrase/etc. It will then return everything *after* that word/phrase/etc. So if that's the only thing on the line, it will return $null. If you want to make an exact match of the line and return the results, "w" without wildcards is required. In your case, the issue was that your tokens were off by one because the matchtext isn't returned when using "s".