Adjusted is_word_delimiter() and is_command() to be cleaner and more efficient