Fixed problem with truncsp() trying to truncate string constants (from umsg). Beautified code a bit (indentation).