Added optional placeholders for uri if placeholder is last