first I want to apologize for the bad title, my problem is best illustrated through the following example: 

This command works fine, although it doesn't make a lot of sense to do so. 

```
sudo bash -c 'pwd 2>/dev/null'

```

but when I put it in an variable, and do : 

```
COMMAND="sudo bash -c 'pwd 2>/dev/null'"
(set -xv; ${COMMAND})

```

I get the quoting unmatching error: 

```
+ sudo bash -c ''\''pwd' '2>/dev/null'\'''
2>/dev/null': -c: line 0: unexpected EOF while looking for matching `''
2>/dev/null': -c: line 1: syntax error: unexpected end of file

```

The problem here seems to be the space between `pwd` and `2>/dev/null`, the following works: 

```
COMMAND="sudo bash -c 'pwd'"
(set -xv; ${COMMAND})

```

The problem appears even when I just put a tailing whitespace after `pwd`

What am i doing wrong here? and how do I solve it ? Thanks in advance.