Works for stride lengths 1-3. Tested by string comparison.