Write string alignment functions