Added a method to compute the width of a string
Fixed bff file loader