Only convert prefix to string if it is present, to avoid converting nil