Checks name value

Only replaces html if there is a value in name.