Is there a way to do string manipulation in plpgsql, or should I just useplperl? It's just been SO long since I've used perl, trying to avoid it....