Added a new function - extract for extracting padding values from a variable