[COMMANDS] Fix printing and updation of string attributes in devtree command

Signed-off-by: Anup Patel <anup@brainfault.org>