Ahh, so you are saying that the createTiddler-title variable is always created trimmed, even if the trailing spaces are included in the $basetitle variable. Yeah, I would say that is a bug. I was also unaware that you could not have trailing spaces in a tiddler title, not that I ever wanted to, but I just didn’t know that upon the first edit of the tiddler it would be auto trimmed anyway. That being the case, then yes, the $bastitle variable should always be trimmed by default in the widget code and that would take care of the createTIddler-title problem.
I just tested it myself as well, and it definitely creates 2 separate tiddlers, and if I have them both opened in the river, and I edit the one with spaces and then save it again, when it tries to remove the spaces, as stated earlier where they are auto trimmed on the first edit, it finds that one without spaces already exists, so instead of renaming it without spaces, it saves it again with spaces, but the river, for a split second, thinks they are the same tiddler, so it quickly removes the tiddler with spaces from the river, even though it still exists, you just have to go find it again.