The issue is with the echo statment not with qwk command. So when every you want to do some operation on a line/string use quotes. If we don’t use the quotes unix will remove space between the strings before sending it to awk.