removed possibility for suffix==prefix
moar stuffs