Added capability to remove template chars if part is not present