Function sscanf replaced with str_pad