String helper's generated substr() now trims the output as well