protect against trailing space in PB/@REF