Trim whitespace and allow empty inputs in debugger