This function is going to cause performance problems. Let's just concatenate wo_number || '-' || wo_subnumber.