Imporved left/right handling +  functions for headers and values