improved checking for todo name: trimming whitespaces