User:Patrick/Str index/logic