Fixed wtrimspace() whih had wrong behavior.