Ensure prefix ends with delimiter