fixed main method not working on unicode systems. 3 spaces -> 4 spaces
trimmed trailing spaces