Strip whitespace from target type