SIZEOF_STR: introduced and use instead of 1024, also replaces SIZEOF_CMD