<?php
// your code goes here
function mb_str_pad($input, $pad_length, $pad_string = ' ', $pad_type = STR_PAD_RIGHT, $encoding = "UTF-8") {
return substr(str_pad($input, $pad_length + $diff, $pad_string, $pad_type),0,15); }
echo mb_str_pad("ESPERANÇAaaaaaaaaaaa", 15, "#");
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCmZ1bmN0aW9uIG1iX3N0cl9wYWQoJGlucHV0LCAkcGFkX2xlbmd0aCwgJHBhZF9zdHJpbmcgPSAnICcsICRwYWRfdHlwZSA9ICAgIFNUUl9QQURfUklHSFQsICRlbmNvZGluZyA9ICJVVEYtOCIpIHsKJGRpZmYgPSBzdHJsZW4oJGlucHV0KSAtIG1iX3N0cmxlbigkaW5wdXQsICRlbmNvZGluZyk7CnJldHVybiBzdWJzdHIoc3RyX3BhZCgkaW5wdXQsICRwYWRfbGVuZ3RoICsgJGRpZmYsICRwYWRfc3RyaW5nLCAkcGFkX3R5cGUpLDAsMTUpOwp9CgplY2hvIG1iX3N0cl9wYWQoIkVTUEVSQU7Dh0FhYWFhYWFhYWFhYSIsIDE1LCAiIyIpOw==