Fix repeated prefix and suffix setting.
Check if there is a prefix or suffix.