Add dummy ui and console to allow debug on PC.
Fix a bug that ending whitespaces lead to alias reprocessing.