Added method to center text inside a table