Add prefix/suffix to endcaps. Closes #89.