Strip whitespace first, then check if PROMPT_COMMAND is empty.