Choose between prefix cache and suffix cache
Fix nil string error
Improve output format (colors, ellipsis)