The s flag scans the file for a line beginning with <text> and returns the rest of line. Perhaps there's nothing for $read to return, and that's why your if condition fails?
If this is the case, you can use the w flag instead. This flag will scan the file and return an entire line.