This will leave an extra space at the end of the attribute if the conditional is not met.