added string size constraint to referer