I'd like to recognize two space characters and give my own meaning to it. Why does this not work and how can I fix it?
{\catcode`\ =13%make space active
\gdef\activespacetoken{ }%
\gdef {\activespacemeaning}}
\def\activespacemeaning{\futurelet\peeknexttoken\activespacewithnexttokenmeaning}
\def\activespacewithnexttokenmeaning{\ifx\peeknexttoken\activespacetoken{T}{F}\fi}
\catcode`\ =13%
Lorem Ipsum is simply dummy text.
\catcode`\ =10%make space space
\bye