added filter for empty spaces in command listing