bug fix: trimmed type string