From: Jani Monoses Date: 2004-09-23T19:04:06+09:00 Subject: String#pad ? Hello is there a nicer way of padding a string to a power of two length than for example data = data.ljust((data.length+3) & ~3) this looks too much like C :) Jani