Solved using the substitution as opposed to the chomp.
Yes I assumed chomp would do what it obviously didn't do...and I was making the issue harder than it actually was...a lesson learned.
I also change the interpolating directly into the SQL Statement to use a placeholder with a validation check of the initial passed groupName from the client.
Thanks for y'alls help on this...I really appreciate it.