functions for filtering of command string